﻿using System.Collections.Generic;
using System.Threading.Tasks;
using cmdb.keede.common;
using cmdb.keede.entity;

namespace cmdb.keede.service
{
    public interface IEnvironmentInfoService
    {
        Task<BizResult<List<EnvironmentInfo>>> GetEnvironmentInfosAsync(int pageIndex, int pageSize);

        Task<List<EnvironmentInfo>> GetAllEnvironmentInfosAsync();

        Task<BizResult<EnvironmentInfo>> GetEnvironmentInfoAsync(int id);

        Task<BizResult<bool>> DeleteEnvironmentInfoAsync(int id);

        Task<BizResult<bool>> AddOrUpdateEnvInfoAsync(EnvironmentInfo env);
    }
}
